﻿<%@ Page language="c#" Codebehind="ListView.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Document.ListView" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>Listview</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<style type="text/css">
table {
	width:100%;
	border:none;
}
table th {
	background:#ccccff;
}
table th, table td {
	padding:3px;
}
table td span a, table td span a:visited {
	color:#fff;
}
.active1 {
	background:#1a499d;
}
.active2 {
	background:#337fb2;
	color:#fff;
	font-weight:bold;
}
.tabnavhead {
	text-align:right;
	position:relative;
}
.tnc {
	float:left;
	width:90px;
	height:30px;
	margin:0 0 0 5px;
	position:relative;
	bottom:0px;
}
.tnc a {
	width:90px;
	height:26px;
	display:block;
	padding:4px 0 0;
	text-align:center;
	line-height:26px;
	color:#fff;
}
.tnc a:visited {
	color:#fff;
}
.tnc a:hover {
	color:#ff0;
}
.path .right {
	padding:6px 0 0;
}
.redButtonCss {
    font-family: "Tahoma", "宋体";
    font-size: 9pt; color: #0066cc;
    border: 1px #93bee2 solid;
    background-image:url(/Images/redbuttonbg.gif);
    background-color: #fff;
	cursor:pointer;
    font-style: normal ;
}
</style>
<script language="javascript">
function MoveToTeam(a)
{
	var ret;
	ret = window.showModalDialog("../MoveTeam/TreeView.aspx?FromID=<%=ClassID%>",window,"dialogHeight:400px;dialogWidth:300px;center:Yes;Help:No;Resizable:No;Status:Yes;Scroll:auto;Status:no;");

	
	if(ret>0)
//	frmAddRight.ObjID.value = ret;
	return false;
}

		function CopyToTeam(a)
{
	var ret;
	ret = ret = window.showModalDialog("../CopyTeam/TreeView.aspx?FromID=<%=ClassID%>",window,"dialogHeight:400px;dialogWidth:300px;center:Yes;Help:No;Resizable:No;Status:Yes;Scroll:auto;Status:no;");

	
	if(ret>0)
//	frmAddRight.ObjID.value = ret;
	return false;
}
		function selectAll(){
			var len=document.Form1.elements.length;
			var i;
		    for (i=0;i<len;i++){
			if (document.Form1.elements[i].type=="checkbox"){
		        document.Form1.elements[i].checked=true;								
						 }
					}
				}

		function unSelectAll(){
	          var len=document.Form1.elements.length;
	          var i;
	          for (i=0;i<len;i++){
	               if (document.Form1.elements[i].type=="checkbox"){
	                  document.Form1.elements[i].checked=false; 
	               }   
	        	 } 
		    }		

		var ball1 = new Image();
		var ball2 = new Image();
		ball1.src = 'images/ball1.gif';
		ball2.src = 'images/ball2.gif';

		var active = new Image();
		var nonactive = new Image();
		active.src = '../../../images/maillistbutton2.gif';
		nonactive.src = '../../../images/maillistbutton1.gif';

		function onMouseOver(img)
		{
			document.images[img].src = ball2.src;
		}

		function onMouseOut(img)
		{
			document.images[img].src = ball1.src;
		}

		function onOverBar(bar)
		{
			if (bar != null) {
				bar.style.backgroundImage = "url("+active.src+")";
			}
		}

		function onOutBar(bar)
		{
			if (bar != null) {
				bar.style.backgroundImage = "url("+nonactive.src+")";
			}
		}
		</script>
		<script language="JavaScript" src="../../../Css/tr.js"></script>
	</head>
<body>
<div class="m">
  <div class="path">
    <a href="/SubModule/UnitiveDocument/">我的桌面</a> >> 已归档</div>
    <div class="con">
        <form id="Form1" method="post" runat="server">
        <div class="tabnav">
        <p class="tabnavhead"> <span id="bar1" class="<% Response.Write(DisplayType=="0"?"active2":"active1"); %> tnc"> <a href="ListView.aspx?ClassID=<%=ClassID%>&amp;DisplayType=0">已归档</a> </span> <span id="bar2" class="<% Response.Write(DisplayType=="1"?"active2":"active1"); %> tnc"> <a href="ListView.aspx?ClassID=<%=ClassID%>&amp;DisplayType=1">未归档</a> </span> <span id="bar3" class="<% Response.Write(DisplayType=="2"?"active2":"active1"); %> tnc"> <a href="ListView.aspx?ClassID=<%=ClassID%>&amp;DisplayType=2">我的上传</a> </span> <span id="bar4" class="<% Response.Write(DisplayType=="3"?"active2":"active1"); %> tnc"> <a href="ListView.aspx?ClassID=<%=ClassID%>&amp;DisplayType=3">回收站</a> </span> </p>
      </div>
        <div>
        <asp:datagrid id="dgDocList" runat="server" DataKeyField="DocID" OnSortCommand="DataGrid_Sort" CellPadding="3" BorderWidth="1px" BorderColor="#337FB2" PageSize="15" OnPageIndexChanged="DataGrid_PageChanged" PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NumericPages" AllowPaging="True" AutoGenerateColumns="False" AllowSorting="True" Width="100%">
		 <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
		<HeaderStyle   HorizontalAlign="Center" Height="10px" ForeColor="White" VerticalAlign="Top"
			BackColor="#337FB2"></HeaderStyle>
		<FooterStyle   HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
		<Columns>
			<asp:TemplateColumn HeaderText="选择">
				<ItemStyle   HorizontalAlign="Center" Height="20px" Width="60px"></ItemStyle>
				<ItemTemplate>
					<asp:CheckBox id="Checkbox1" Checked="False" Runat="server"></asp:CheckBox>
				</ItemTemplate>
			</asp:TemplateColumn>
			<asp:TemplateColumn SortExpression="DocTitle" HeaderText="文档主题">
				<HeaderStyle Font-Underline="True"></HeaderStyle>
				<ItemStyle  ></ItemStyle>
				<ItemTemplate>
					<a href="#" onclick='window.showModalDialog("BrowseDocument.aspx?DocId=<%# DataBinder.Eval(Container.DataItem,"DocID") %>",window,"dialogWidth:700px;DialogHeight=590px;status:no")'>
						<%# (DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Length>30)?DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Substring(0,30)+"...":DataBinder.Eval(Container.DataItem,"DocTitle").ToString() %>
					</a>
				</ItemTemplate>
			</asp:TemplateColumn>
			<asp:BoundColumn DataField="DocApprover" SortExpression="DocApprover" HeaderText="审批人">
				<ItemStyle  ></ItemStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="DocAddedBy" SortExpression="DocAddedBy" HeaderText="上传人">
				<ItemStyle  ></ItemStyle>
				<FooterStyle  ></FooterStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="DocAddedDate" SortExpression="DocAddedDate" HeaderText="上传日期">
				<ItemStyle  ></ItemStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="DocViewedTimes" SortExpression="DocViewedTimes" HeaderText="浏览次数">
				<HeaderStyle  ></HeaderStyle>
				<ItemStyle  ></ItemStyle>
				<FooterStyle  ></FooterStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="DocLastViewer" SortExpression="DocLastViewer" HeaderText="最后浏览者">
				<ItemStyle  ></ItemStyle>
			</asp:BoundColumn>
			<asp:BoundColumn Visible="False" DataField="DocLastViewDate" SortExpression="DocLastViewDate" HeaderText="浏览日期">
				<HeaderStyle Font-Underline="True"></HeaderStyle>
				<ItemStyle  ></ItemStyle>
				<FooterStyle  ></FooterStyle>
			</asp:BoundColumn>
		</Columns>
		<PagerStyle Font-Size="12px" BorderColor="#E0E0E0" BorderStyle="Dotted" HorizontalAlign="Right" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
	</asp:datagrid>
							
		<p><a onclick="selectAll()" href="#">全部选择</a> | <a onclick="unSelectAll()" href="#"> 全部取消 </a> | <asp:linkbutton id="lnkbtnDelete" runat="server"   CausesValidation="False">丢弃</asp:linkbutton> | <a onclick="MoveToTeam()" href="#"><asp:label id="lblRemove" runat="server"  > 目录移动</asp:label></a> | <a onclick="CopyToTeam()" href="#"><asp:Label id="lblCopy" runat="server">目录复制</asp:Label></a> | <a href="../Switch.aspx?ClassID=<%=ClassID%>&amp;Action=0" ><asp:label id="lblDeliveryDoc" runat="server"  >投递文档</asp:label></a> | <a href="../oClassNode.aspx?Action=3&amp;ClassID=<%=ClassID%>" ><asp:label id="lblManageDirectory" runat="server"> 目录管理</asp:label></a> | <a href="../MemberListView.aspx?TeamID=<%=ClassID%>" ><asp:label id="lblShowMember" runat="server"  >显示组员</asp:label></a> | <a href="../../AssignRule/RightListView.aspx?ObjID=<%=ClassID%>&amp;displayType=1"><asp:label id="lblManagePermission" runat="server"  > 权限管理</asp:label></a> </p></div>
		</form>
  </div>
</div>
</body>
</html>
